package com.woniuxy.rabbitmq83.direct;

import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * description: chengduConsumer <br>
 * date: 2022/1/12 5:13 下午 <br>
 * author: shesaifei <br>
 * version: 1.0 <br>
 */

@Component
public class chongqingConsumer {
    @RabbitListener(queues = "directTwo")
    public void received(String message) {
        System.out.println("chongqing -" + message);
    }
}
